home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_300 / 399_01 / makefile < prev    next >
Encoding:
Makefile  |  1993-06-30  |  1.4 KB  |  65 lines

  1. SOURCES    = mined1.c minedaux.c mined2.c minedio.c minedmp.c
  2. OBJ    = mined1.o minedaux.o mined2.o minedio.o minedmp.o
  3. #I    = /usr/include    # dependencies of this might also be used
  4.  
  5. # Choose one of the following:
  6. #
  7. #SCREEN    = -DTERMIO
  8. #SLIB    = -ltermcap
  9. #
  10. SCREEN    = -DSGTTY
  11. SLIB    = -ltermcap
  12. #
  13. # Choose curses only in case of emergency, else better leave it.
  14. # The VMS version uses curses but doesn't use this makefile anyway.
  15. #SCREEN    = -DCURSES
  16. #SLIB    = -lcurses -ltermcap
  17.  
  18. # Define sysV if on System V flavour
  19. #SYSTEM    = -Dunix -DsysV
  20. SYSTEM    = -Dunix
  21.  
  22. # Define if optimization wanted:
  23. #OPT    = -O
  24.  
  25. # Define if pedantic analysis wanted:
  26. GFLAGS    = -Dunix -ansi -pedantic -Wall -Wtraditional -Wpointer-arith -Wconversion -Waggregate-return -Winline
  27.  
  28. # Collection of compilation parameters:
  29. CFLAGS    = $(OPT) $(SCREEN) $(SYSTEM)
  30.  
  31. # Optionally choose a C compiler:
  32. #CC    = gcc $(GFLAGS)
  33. CC    = cc
  34.  
  35.  
  36. # Default make action:
  37. all:    mined
  38.  
  39. # Mined generation:
  40. mined:    $(OBJ)
  41.     $(CC) $(OBJ) $(SLIB) -o mined
  42.     strip mined
  43.  
  44. # Source compilation:
  45. mined1.o:    mined1.c mined.h
  46.     $(CC) $(CFLAGS) -c mined1.c
  47. minedaux.o:    minedaux.c mined.h
  48.     $(CC) $(CFLAGS) -c minedaux.c
  49. mined2.o:    mined2.c mined.h
  50.     $(CC) $(CFLAGS) -c mined2.c
  51. minedio.o:    minedio.c mined.h
  52.     $(CC) $(CFLAGS) -c minedio.c
  53. minedmp.o:    minedmp.c mined.h
  54.     $(CC) $(CFLAGS) -c minedmp.c
  55.  
  56.  
  57. # Cleanup after compilation:
  58. clean:
  59.     rm -f $(OBJ) core
  60.  
  61. # Restore state before compilation:
  62. clobber: clean
  63.     rm -f mined
  64.  
  65.